
package com.scs.application.modules.base.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.core.service.IBaseService;
import com.scs.application.modules.base.entity.HospitalWarehouse;
import com.scs.application.modules.base.request.HospitalWarehouseQueryRequest;

import java.util.List;


/**
 * 医院收货地点 service 接口
 *
 */
public interface HospitalWarehouseService extends IBaseService<HospitalWarehouse> {


    List<HospitalWarehouse> list(HospitalWarehouseQueryRequest request);


    IPage<HospitalWarehouse> page(HospitalWarehouseQueryRequest request);

    /**
     * 新增仓库信息
     *
     * @param entity
     * @return
     */
    boolean add(HospitalWarehouse entity);

    /**
     * 更新仓库信息
     *
     * @param entity
     * @return
     */
    boolean update(HospitalWarehouse entity);

    /**
     * 根据仓库名查询仓库id
     */
    HospitalWarehouse findByWarehouseName(String warehouseName, String hospitalId);


}
